import React from 'react';
import classNames from 'classnames';

import { fromJS } from 'immutable';
import { Row, Col } from 'antd';

import GoodsList from '../component/goods-list';

export const orderColumns = [
  {
    title: '商品',
    dataIndex: 'itemOrders',
    render: (value, record, index) => {
      // let specState = classNames('t-grayer', {
      //   hide: !record.productSpecification
      // });
      return {
        children: <GoodsList itemOrders={value} />,
        props: {
          colSpan: 2
        }
      }
    }
  },
  {
    title: '',
    width: 150,
    className: 'ant-table-th-right',
    dataIndex: 'price-itemNumber',
    render: (value, record, index) => {
      return {
        props: {
          colSpan: 0
        }
      }
    }
  }
]